from django.urls import path, include
from rest_framework.routers import DefaultRouter


from apps.common.mini_program.views import MiniProgramBindAccount, WechatLoginView, UserInformationViewSet, \
    UnBindAccountView, NewBindView, MiniUrlView

router = DefaultRouter()

router.register('user_information', UserInformationViewSet, basename='account')

urlpatterns = [
    path('login/', WechatLoginView.as_view()),
    path('bind_account/', MiniProgramBindAccount.as_view()),
    path('unbind_account/', UnBindAccountView.as_view()),
    path('new_bind/', NewBindView.as_view()),
    path('mini_url/', MiniUrlView.as_view()),
    path('api/', include(router.urls))
]
